﻿#ifndef UDPFILTER_H
#define UDPFILTER_H

#include <qnetworkdatagram.h>
#include <qudpsocket.h>

class UdpIOer :  public QUdpSocket
{
  Q_OBJECT
protected:
  enum PrivateSignalClass
  {
    PrivateSignal
  };
public:
  explicit UdpIOer();
  virtual ~UdpIOer();
public:
  virtual void sendData(QNetworkDatagram datagram);
signals:
  void signal_newMessage(QNetworkDatagram datagram,
                         UdpIOer::PrivateSignalClass=UdpIOer::PrivateSignal);
private slots:
  void slot_msgReceived();
};

#endif // UDPFILTER_H
